<?php
$html = str_replace('<!--{url}-->', URL, $html);
$html = str_replace('<!--{pageHeader}-->', $pageHeader, $html);
$html = str_replace('<!--{pdfBadge}-->', $pdfBadge, $html);
$html = str_replace('<!--{pdfPlaceholder}-->', $pdfPlaceholder, $html);

$html = str_replace('<!--{noticiaId}-->', $noticia->id, $html);
$html = str_replace('<!--{noticiaTitulo}-->', $noticia->titulo, $html);
$html = str_replace('<!--{noticiaFecha}-->', $noticia->fecha, $html);


//portada
$images = '';
$images .= $imagesTpl;
$images = str_replace('<!--{imagenId}-->', $noticia->portada->id, $images);
$images = str_replace('<!--{imagenSrc}-->', $noticia->portada->src, $images);
$images = str_replace('<!--{urlThumb}-->', URL.'content/prensa/', $images);
$images = str_replace('<!--{urlCrop}-->', URL.'content/prensa/o/', $images);
$html = str_replace('<!--{imagenes}-->', $images, $html);

$html = preg_replace('/<!-+\{*[A-Za-z0-9]*\}*-+>/', '', $html);
?>
